const address = {
	state: {
		addressList: [{
			mobile: '18807811847',
			username: 'yrg',
			address: '广西靖西市'
		}],
		currentAddress: {}, //当前的地址
		addressItem: {} //当前编辑的地址
	},
	mutations: {
		address(state, item) {
			state.addressList.push(item)
		},
		currentAddress(state, item) {
			state.currentAddress = item
		},
		
		setAddressItem(state, item) {
			state.addressItem = item
		}

	}
}

export default address